cmake_minimum_required(VERSION 3.0)
PROJECT(MYFILES_FDFS)

include_directories(../common/ /usr/include/fastdfs/)

aux_source_directory(../common ALL_SRCS)
aux_source_directory(./src SRC)
add_compile_options(-Wall)
add_executable(myfiles ${ALL_SRCS} ${SRC} main.c)

target_link_libraries(myfiles fdfsclient fcgi mysqlclient rt pthread hiredis)
